<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // function fn1(){
        //     console.log(this);
        // }
        // var obj = {
        //     name:"vue"
        // }
        // fn1();
        // fn1.call(obj);

        // var fn2 = fn1.bind(obj);
        // fn2();
        var name = "window"
        var zhang = {
            name: "张三"
        }
        function show(a, b) {
            console.log(this.name);
            console.log(a + b)
        }
        show.call(zhang, 2, 3);
        show.apply(zhang, [2, 3])
    </script>
</body>

</html>